package com.ihelp.rest.mis.platform.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ihelp.rest.base.hibernate4.BaseHibernateDao;
import com.ihelp.rest.base.po.Page;
import com.ihelp.rest.mis.pojo.UserTime;

@Repository
public class UserTimeDao extends BaseHibernateDao<UserTime, String>{

	public void saveUserTime(List<UserTime> timeList){
		for(UserTime model : timeList){
			this.save(model);
		}
	}
	
	
	public Page<UserTime> getAllRC(int start, int pageSize){
		return this.page(" from UserTime order by addTime desc", start, pageSize);
	}
}
